package com.wva.video.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hong
 * @since 2025-02-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("video_metadata")
@ApiModel(value="VideoMetadata对象", description="")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class VideoMetadata implements Serializable {
    @ApiModelProperty(value = "对应的视频id")
    @TableId(value = "video_id", type = IdType.ASSIGN_ID)
    private Long videoId;

    @ApiModelProperty(value = "长度，秒")
    private Double duration;

    @ApiModelProperty(value = "视频规格，格式：1080x30,720x60,...")
    private String qualities;

    @ApiModelProperty(value = "创建用户")
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;
}
